<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>{{if .title}}{{.title}} - 模库 | Templio{{else}}模库 | Templio - 高质量网站模板平台{{end}}</title>
    <!-- 网站图标 -->
    <link rel="icon" href="/public/favicon.ico" type="image/x-icon">
    <link rel="shortcut icon" href="/public/favicon.ico" type="image/x-icon">
    <!-- 引入谷歌字体 -->
    <link rel="preconnect" href="https://fonts.googleapis.com">
    <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
    <link href="https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700&family=Rajdhani:wght@300;400;500;600;700&display=swap" rel="stylesheet">
    <!-- Tailwind CSS CDN -->
    <script src="https://cdn.tailwindcss.com"></script>
    <script>
        tailwind.config = {
            theme: {
                extend: {
                    colors: {
                        'cyber-blue': '#00f0ff',
                        'cyber-purple': '#8a2be2',
                        'cyber-pink': '#ff00ff',
                        'cyber-black': '#0a0a16',
                        'cyber-dark': '#12141e',
                        'cyber-light': '#2a2c42',
                    },
                    fontFamily: {
                        'orbitron': ['Orbitron', 'sans-serif'],
                        'rajdhani': ['Rajdhani', 'sans-serif'],
                    },
                    boxShadow: {
                        'neon-blue': '0 0 5px #00f0ff, 0 0 20px rgba(0, 240, 255, 0.3)',
                        'neon-purple': '0 0 5px #8a2be2, 0 0 20px rgba(138, 43, 226, 0.3)',
                        'neon-pink': '0 0 5px #ff00ff, 0 0 20px rgba(255, 0, 255, 0.3)',
                    },
                    animation: {
                        'glow': 'glow 2s ease-in-out infinite alternate',
                        'float': 'float 3s ease-in-out infinite',
                    },
                    keyframes: {
                        glow: {
                            '0%': { boxShadow: '0 0 5px #00f0ff, 0 0 10px rgba(0, 240, 255, 0.3)' },
                            '100%': { boxShadow: '0 0 10px #00f0ff, 0 0 20px rgba(0, 240, 255, 0.6)' },
                        },
                        float: {
                            '0%, 100%': { transform: 'translateY(0)' },
                            '50%': { transform: 'translateY(-10px)' },
                        }
                    },
                },
            },
        }
    </script>
    <!-- 自定义样式 -->
    <style>
        body {
            font-family: 'Rajdhani', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
            background: linear-gradient(to bottom, #0a0a16, #1a1a2e);
            color: #ffffff;
            background-attachment: fixed;
            position: relative;
        }
        
        body::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%232a2c42' fill-opacity='0.15' fill-rule='evenodd'/%3E%3C/svg%3E"),
                  radial-gradient(ellipse at top, rgba(10, 10, 22, 0.3), transparent),
                  radial-gradient(ellipse at bottom, rgba(42, 44, 66, 0.3), transparent);
            z-index: -1;
            pointer-events: none;
        }
        
        /* 霓虹文字效果 */
        .neon-text {
            text-shadow: 0 0 5px #00f0ff, 0 0 10px rgba(0, 240, 255, 0.8);
        }
        
        .neon-text-purple {
            text-shadow: 0 0 5px #8a2be2, 0 0 10px rgba(138, 43, 226, 0.8);
        }
        
        .neon-text-pink {
            text-shadow: 0 0 5px #ff00ff, 0 0 10px rgba(255, 0, 255, 0.8);
        }
        
        /* 网格线背景 */
        .grid-lines {
            background-image: linear-gradient(rgba(0, 240, 255, 0.1) 1px, transparent 1px),
                            linear-gradient(90deg, rgba(0, 240, 255, 0.1) 1px, transparent 1px);
            background-size: 25px 25px;
        }
        
        /* 下拉框美化 */
        select {
            appearance: none;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2300f0ff'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7' /%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: right 8px center;
            background-size: 16px;
            padding-right: 36px !important;
            background-color: rgba(18, 20, 30, 0.7);
            border: 1px solid rgba(0, 240, 255, 0.3);
            color: white;
        }
        
        /* 按钮悬停动画 */
        .hover-glow:hover {
            box-shadow: 0 0 5px #00f0ff, 0 0 20px rgba(0, 240, 255, 0.3);
            transform: translateY(-2px);
            transition: all 0.3s ease;
        }
    </style>
</head>
<body class="min-h-screen">
    <!-- 导航 -->
    {{include "partials/header.html" .}}
    
    <!-- 主内容 -->
    <main class="container mx-auto px-4 sm:px-4 py-8 pt-12 max-w-6xl">
        {{include .mainTpl .}}
    </main>
    
    <!-- 页脚 -->
    {{include "partials/footer.html" .}}
</body>
</html> 